package com.ruoyi.hospital.domain.prescriptionInfo;

import com.ruoyi.common.core.domain.NewBaseEntity;
import com.ruoyi.hospital.domain.member.MemberConInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 处方信息对象 prescription_info
 *
 * @author wendao
 * @date 2024-08-20
 */
public class PrescriptionInfo extends NewBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 处方编号 */
    @Excel(name = "处方编号")
    private String prescriptionNumber;

    private Integer conId; //问诊id


    /** 审核药师 */
    @Excel(name = "审核药师")
    private String pharmacistName;
    private Integer phaId;

    /** 药店名称 */
    @Excel(name = "药店名称")
    private String storeName;
    private Integer storeId;

    /** 诊断 */
    @Excel(name = "诊断")
    private String preDiagnosis;

    /** 审核时间 */
    @Excel(name = "审核时间")
    private Integer prescriptionAuditTime;

    /** 审核状态 */
    @Excel(name = "审核状态",dictType = "prescription_state")
    private Integer prescriptionState;

    private String docAdvice; //医嘱
    private String patientDesc; //患者主诉
    private String docResult;  //诊断结果
    /** 删除时间 */
    private Integer deleteTime;

//______________________________________________________________
    /** 开方医生 */
    @Excel(name = "开方医生")
    private String docName;
    private Integer docId;

    /** 科室 */
    @Excel(name = "科室")
    private String depName;
    private Integer depId;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String memberName;
    private Integer memberId;
    private Integer memberSex;
    private Integer memberAge;
    private String memberAvatar;

    /*
    * 就诊人信息
    * */
    private String memberConName;
    private Integer memberConSex;
    private String birthday;

    private String hisName; //医院
    private Integer beginTime;
    private Integer endTime;



    //就诊信息
    private MemberConInfo memberConInfo;

    //药品信息列表
    private List<PrescriptionDrug> prescriptionDrugs;

    public String getMemberAvatar() {
        return memberAvatar;
    }

    public void setMemberAvatar(String memberAvatar) {
        this.memberAvatar = memberAvatar;
    }

    public MemberConInfo getMemberConInfo() {
        return memberConInfo;
    }

    public void setMemberConInfo(MemberConInfo memberConInfo) {
        this.memberConInfo = memberConInfo;
    }

    public String getHisName() {
        return hisName;
    }

    public void setHisName(String hisName) {
        this.hisName = hisName;
    }

    public String getMemberConName() {
        return memberConName;
    }

    public void setMemberConName(String memberConName) {
        this.memberConName = memberConName;
    }

    public Integer getMemberConSex() {
        return memberConSex;
    }

    public void setMemberConSex(Integer memberConSex) {
        this.memberConSex = memberConSex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Integer getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Integer beginTime) {
        this.beginTime = beginTime;
    }

    public Integer getEndTime() {
        return endTime;
    }

    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }

    public Integer getMemberAge() {
        return memberAge;
    }

    public void setMemberAge(Integer memberAge) {
        this.memberAge = memberAge;
    }

    public String getDocResult() {
        return docResult;
    }

    public void setDocResult(String docResult) {
        this.docResult = docResult;
    }

    public String getPatientDesc() {
        return patientDesc;
    }

    public void setPatientDesc(String patientDesc) {
        this.patientDesc = patientDesc;
    }

    public String getDocAdvice() {
        return docAdvice;
    }

    public void setDocAdvice(String docAdvice) {
        this.docAdvice = docAdvice;
    }

    public Integer getConId() {
        return conId;
    }

    public void setConId(Integer conId) {
        this.conId = conId;
    }

    public List<PrescriptionDrug> getPrescriptionDrugs() {
        return prescriptionDrugs;
    }

    public void setPrescriptionDrugs(List<PrescriptionDrug> prescriptionDrugs) {
        this.prescriptionDrugs = prescriptionDrugs;
    }

    public Integer getMemberSex() {
        return memberSex;
    }

    public void setMemberSex(Integer memberSex) {
        this.memberSex = memberSex;
    }

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getDepName() {
        return depName;
    }

    public void setDepName(String depName) {
        this.depName = depName;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getPharmacistName() {
        return pharmacistName;
    }

    public void setPharmacistName(String pharmacistName) {
        this.pharmacistName = pharmacistName;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setPrescriptionNumber(String prescriptionNumber)
    {
        this.prescriptionNumber = prescriptionNumber;
    }

    public String getPrescriptionNumber()
    {
        return prescriptionNumber;
    }
    public void setDocId(Integer docId)
    {
        this.docId = docId;
    }

    public Integer getDocId()
    {
        return docId;
    }
    public void setDepId(Integer depId)
    {
        this.depId = depId;
    }

    public Integer getDepId()
    {
        return depId;
    }
    public void setMemberId(Integer memberId)
    {
        this.memberId = memberId;
    }

    public Integer getMemberId()
    {
        return memberId;
    }
    public void setPhaId(Integer phaId)
    {
        this.phaId = phaId;
    }

    public Integer getPhaId()
    {
        return phaId;
    }
    public void setStoreId(Integer storeId)
    {
        this.storeId = storeId;
    }

    public Integer getStoreId()
    {
        return storeId;
    }
    public void setPreDiagnosis(String preDiagnosis)
    {
        this.preDiagnosis = preDiagnosis;
    }

    public String getPreDiagnosis()
    {
        return preDiagnosis;
    }
    public void setPrescriptionAuditTime(Integer prescriptionAuditTime)
    {
        this.prescriptionAuditTime = prescriptionAuditTime;
    }

    public Integer getPrescriptionAuditTime()
    {
        return prescriptionAuditTime;
    }
    public void setPrescriptionState(Integer prescriptionState)
    {
        this.prescriptionState = prescriptionState;
    }

    public Integer getPrescriptionState()
    {
        return prescriptionState;
    }
    public void setDeleteTime(Integer deleteTime)
    {
        this.deleteTime = deleteTime;
    }

    public Integer getDeleteTime()
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("prescriptionNumber", getPrescriptionNumber())
                .append("docId", getDocId())
                .append("depId", getDepId())
                .append("memberId", getMemberId())
                .append("phaId", getPhaId())
                .append("storeId", getStoreId())
                .append("preDiagnosis", getPreDiagnosis())
                .append("prescriptionAuditTime", getPrescriptionAuditTime())
                .append("prescriptionState", getPrescriptionState())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleteTime", getDeleteTime())
                .toString();
    }
}
